package date0606_2;
import java.util.ArrayList;

public class ArrayListTest {
	public static void main(String[] args) {
		ArrayList<String> list = new ArrayList<String>(5);
		ArrayListHelper.perspective(list);
		
		list.add("华安");
		list.add("秋香");
		list.add("华文");
		
		System.out.print(list);
		
		list.ensureCapacity(10);//ArrayList 类中重新声明的方法
		ArrayListHelper.perspective(list);
		
		System.out.print(list);
		
		list.trimToSize();//ArrayList 类中重新声明的方法
		ArrayListHelper.perspective(list);
		
		System.out.print(list);
	}
}
